<?php
namespace common\models\redPacket;

use common\models\Common;

/**
 * This is the model class for table "goods".
 *
 * @property int $id
 * @property string $name
 */
class RedPacket extends Common
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%red_packet}}';
    }


    public function getLog()
    {
        return $this->hasMany(RedPacketLog::className(), ['red_packet_id' => 'id']);
    }
}